from django.db import models

class Admi(models.Model):
    username = models.CharField(max_length=32,null=False)
    password = models.CharField(max_length=32,null=False)

    def __str__(self):
        return self.username


class Stu(models.Model):
    name = models.CharField(max_length=32,)
    sex = models.CharField(max_length=32)
    xueyaun = models.CharField(max_length=32)
    clas = models.CharField(max_length=32)
    zhiwu = models.CharField(max_length=32)
    tpl = models.CharField(max_length=32)
    b_time = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.name

# 姓名、性别、学院、班级、班级职务名称、手机、入学时间等信息